package com.jiyun.user.service.impl;

import com.jiyun.user.domain.User;
import com.jiyun.user.mapper.UserMapper;
import com.jiyun.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    //      登录
    @Override
    public User getUser(User user) {
        return userMapper.getUser(user);
    }
    //      添加用户
    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

}
